import{
	createRouter,
	createWebHashHistory
}from'vue-router'

import Admin from "~/layouts/admin.vue"
import index from '~/pages/index.vue'
import NotFound from '~/pages/404.vue'

import from '~'
const routes=[{
path:"/",
compoent:Admin,
//子路由
children:[{
	path:"/",
	compoent:index,
	meta:{
		title:"后台首页"
	}
}]
},{
	path:"/about",
	compoent:about
},
{ 
	path: '/:pathMatch(.*)*',
	 name: 'NotFound', 
	 component: NotFound ,
}]
const router=createRouter({
	history:createWebHashHistory(),
})
export default router